Integrand size = 21, antiderivative size = 118 \[ \int \cot (e+f x) \left (a+b \tan ^2(e+f x)\right )^p \, dx=\frac {\operatorname {Hypergeometric2F1}\left (1,1+p,2+p,\frac {a+b \tan ^2(e+f x)}{a-b}\right ) \left (a+b \tan ^2(e+f x)\right )^{1+p}}{2 (a-b) f (1+p)}-\frac {\operatorname {Hypergeometric2F1}\left (1,1+p,2+p,1+\frac {b \tan ^2(e+f x)}{a}\right ) \left (a+b \tan ^2(e+f x)\right )^{1+p}}{2 a f (1+p)} \]
[Out]
Time = 0.13 (sec) , antiderivative size = 118, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {3751, 457, 88, 67, 70} \[ \int \cot (e+f x) \left (a+b \tan ^2(e+f x)\right )^p \, dx=\frac {\left (a+b \tan ^2(e+f x)\right )^{p+1} \operatorname {Hypergeometric2F1}\left (1,p+1,p+2,\frac {b \tan ^2(e+f x)+a}{a-b}\right )}{2 f (p+1) (a-b)}-\frac {\left (a+b \tan ^2(e+f x)\right )^{p+1} \operatorname {Hypergeometric2F1}\left (1,p+1,p+2,\frac {b \tan ^2(e+f x)}{a}+1\right )}{2 a f (p+1)} \]
[In]
[Out]
Rule 67
Rule 70
Rule 88
Rule 457
Rule 3751
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {\left (a+b x^2\right )^p}{x \left (1+x^2\right )} \, dx,x,\tan (e+f x)\right )}{f} \\ & = \frac {\text {Subst}\left (\int \frac {(a+b x)^p}{x (1+x)} \, dx,x,\tan ^2(e+f x)\right )}{2 f} \\ & = \frac {\text {Subst}\left (\int \frac {(a+b x)^p}{x} \, dx,x,\tan ^2(e+f x)\right )}{2 f}-\frac {\text {Subst}\left (\int \frac {(a+b x)^p}{1+x} \, dx,x,\tan ^2(e+f x)\right )}{2 f} \\ & = \frac {\operatorname {Hypergeometric2F1}\left (1,1+p,2+p,\frac {a+b \tan ^2(e+f x)}{a-b}\right ) \left (a+b \tan ^2(e+f x)\right )^{1+p}}{2 (a-b) f (1+p)}-\frac {\operatorname {Hypergeometric2F1}\left (1,1+p,2+p,1+\frac {b \tan ^2(e+f x)}{a}\right ) \left (a+b \tan ^2(e+f x)\right )^{1+p}}{2 a f (1+p)} \\ \end{align*}
Time = 0.18 (sec) , antiderivative size = 98, normalized size of antiderivative = 0.83 \[ \int \cot (e+f x) \left (a+b \tan ^2(e+f x)\right )^p \, dx=\frac {\left (a \operatorname {Hypergeometric2F1}\left (1,1+p,2+p,\frac {a+b \tan ^2(e+f x)}{a-b}\right )+(-a+b) \operatorname {Hypergeometric2F1}\left (1,1+p,2+p,1+\frac {b \tan ^2(e+f x)}{a}\right )\right ) \left (a+b \tan ^2(e+f x)\right )^{1+p}}{2 a (a-b) f (1+p)} \]
[In]
[Out]
\[\int \cot \left (f x +e \right ) \left (a +b \tan \left (f x +e \right )^{2}\right )^{p}d x\]
[In]
[Out]
\[ \int \cot (e+f x) \left (a+b \tan ^2(e+f x)\right )^p \, dx=\int { {\left (b \tan \left (f x + e\right )^{2} + a\right )}^{p} \cot \left (f x + e\right ) \,d x } \]
[In]
[Out]
\[ \int \cot (e+f x) \left (a+b \tan ^2(e+f x)\right )^p \, dx=\int \left (a + b \tan ^{2}{\left (e + f x \right )}\right )^{p} \cot {\left (e + f x \right )}\, dx \]
[In]
[Out]
\[ \int \cot (e+f x) \left (a+b \tan ^2(e+f x)\right )^p \, dx=\int { {\left (b \tan \left (f x + e\right )^{2} + a\right )}^{p} \cot \left (f x + e\right ) \,d x } \]
[In]
[Out]
\[ \int \cot (e+f x) \left (a+b \tan ^2(e+f x)\right )^p \, dx=\int { {\left (b \tan \left (f x + e\right )^{2} + a\right )}^{p} \cot \left (f x + e\right ) \,d x } \]
[In]
[Out]
Timed out. \[ \int \cot (e+f x) \left (a+b \tan ^2(e+f x)\right )^p \, dx=\int \mathrm {cot}\left (e+f\,x\right )\,{\left (b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a\right )}^p \,d x \]
[In]
[Out]